package entity.web.beans;


import gestione.mgrImpiegato.*;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean
@RequestScoped
public class ImpiegatoBean {
	
	@EJB
	private ImpiegatoMgr impiegatoMgr;
	
	public String getNome() {
		return impiegatoMgr.getImpiegatoDTO().getNome();
		
	}
	
	public String getCognome(){
		return impiegatoMgr.getImpiegatoDTO().getCognome();
	}
	
	public String getCodPersona(){
		return impiegatoMgr.getImpiegatoDTO().getCodPersona();
	}
	

	@Override
	public String toString(){
		return("Benvenuto/a "+impiegatoMgr.getImpiegatoDTO().getNome()+" "+impiegatoMgr.getImpiegatoDTO().getCognome());
	}
}
